package com.example.huadu_server.landlord.service;

import com.example.huadu_server.config.Response;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface LandlordAuthService {
    //注册
    Response<String> sendRegisterCode(String email);
    Response<String> register(String email, String code, String password);

    // 获取登录验证码
    void generateLoginCode(HttpServletResponse response);

    // 用户登录
    Response<Map<String, Object>> login(String email, String password, String code);
}
